<template>
  <div>
    <h2 class="section-title">探索福州魅力</h2>
    <div class="content-grid">
      <content-card 
        v-for="(section, index) in sections" 
        :key="index" 
        :section="section">
      </content-card>
    </div>
  </div>
</template>

<script>
import ContentCard from './ContentCard.vue'

export default {
  name: 'ContentSections',
  components: {
    ContentCard
  },
  props: {
    sections: {
      type: Array,
      required: true
    }
  }
}
</script>

<style scoped>
.section-title {
  text-align: center;
  margin: 40px 0 30px;
  color: var(--primary-color);
  font-size: 2.2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 10px auto;
  border-radius: 2px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
}
</style>